import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqIntHelper } from "../Public/SeqIntHelper";
type int = number;
//class SPromotionCardInfo
    
    export  class SPromotionCardInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPromotionCardInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeLong(this.useType);
            SeqIntHelper.write(arg1, this.typeExs);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.useType = arg1.readLong();
            this.typeExs = SeqIntHelper.read(arg1);
            return;
        }

        public /* const */_type: int=12075;

        public /* var */useType: number;

        public /* var */typeExs: Array<any>;

        public static /* var */_regist: SPromotionCardInfo;
    }

            SPromotionCardInfo._regist = new SPromotionCardInfo(true);
        